import request from '@/utils/request.js'

export function login(data) {
	return request({
		url: '/app/wxLogin',
		method: 'post',
		notToken: true,
		data: data
	})
}

export function getInfo() {
	return request({
		url: '/getInfo',
		method: 'get'
	})
}

/**
 * 刷新令牌
 */
export function refreshToken() {
	return request({
		url: '/app/refreshToken',
		method: 'get'
	})
}